home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{AA1241B5-301A-4A8B-BF55-907CFB305553}#1.0#0"; "ciaXPProgressStep.ocx"
- Begin VB.Form Form1
- BackColor = &H00FFFFFF&
- Caption = "Form1"
- ClientHeight = 3810
- ClientLeft = 60
- ClientTop = 450
- ClientWidth = 6300
- LinkTopic = "Form1"
- ScaleHeight = 3810
- ScaleWidth = 6300
- StartUpPosition = 3 'Windows Default
- Begin ciaXPProgressStep.ProgressStep ProgressStep1
- Height = 360
- Left = 1455
- TabIndex = 3
- Top = 615
- Width = 3375
- _ExtentX = 5953
- _ExtentY = 635
- UseNeutralColors= 0 'False
- Steps = 5
- LicValid = -1 'True
- End
- Begin VB.Timer Timer1
- Enabled = 0 'False
- Interval = 1000
- Left = 4230
- Top = 2835
- End
- Begin VB.CommandButton Command1
- Caption = "Start"
- Height = 495
- Left = 2850
- TabIndex = 1
- Top = 2790
- Width = 1215
- End
- Begin VB.Label Label2
- BackColor = &H00FFFFFF&
- Caption = "Label2"
- ForeColor = &H80000011&
- Height = 255
- Left = 1830
- TabIndex = 2
- Top = 1020
- Width = 3135
- End
- Begin VB.Label Label1
- BackColor = &H00FFFFFF&
- Caption = $"Form1.frx":0000
- Height = 900
- Left = 570
- TabIndex = 0
- Top = 1830
- Width = 5385
- WordWrap = -1 'True
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim inc As Integer
- Private Sub Command1_Click()
- Command1.Enabled = False
- ProgressStep1.ClearAllSteps 0
- Timer1.Enabled = True
- Label2 = "0 percent complete. Please Wait......"
- End Sub
- Private Sub Timer1_Timer()
- If inc > 4 Then
- Timer1.Enabled = False
- Command1.Enabled = True
- Label2 = "Complete"
- inc = 0
- Exit Sub
- End If
- ProgressStep1.ChangeStepState inc, True, (inc + 1) * 20
- Label2 = "" & (inc + 1) * 20 & " percent complete. Please Wait......"
- inc = inc + 1
- End Sub
-